package com.example.hospitalsystem.pojo.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 处方/药品关联表
 * </p>
 *
 * @author author
 * @since 2024-04-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("prescription_pharmacy")
public class PrescriptionPharmacy implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "prescription_pharmacy_id", type = IdType.AUTO)
    private Integer prescriptionPharmacyId;

    /**
     * 处方id
     */
    @TableField("prescription_id")
    private Integer prescriptionId;

    /**
     * 药品id
     */
    @TableField("medicine_id")
    private Integer medicineId;

    /**
     * 药品名称
     */
    @TableField("medicine_name")
    private String medicineName;

    /**
     * 药品单价
     */
    @TableField("unit_price")
    private Integer unitPrice;

    /**
     * 开具药品数量
     */
    @TableField("quantity")
    private Integer quantity;

    /**
     * 单个药品总价
     */
    @TableField("sum_price")
    private Integer sumPrice;

}
